 #include<reg52.h>
 #defined  uchar unsigned char
 #defined  uint  unsigned int
 #defined  x 8
sbit W=p3^6;
sbit D=P3^7; 
uchar code shu[]={0x3f,0x06,0x5d,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
uchar code wei[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
void display (uchar a);
void delay (uint a);
void main()
{
	EA=1;
			
			
}
 void delay(uint a)
{
	int i,j;
	for (i=12,i>0,i--)
		for (j=a;j>0;j--);
}
void display (uchar a,uchar b)
{
 	D=1;
	P0=wei[a]
	D=0;
	P0=0xff;
	W=1;
	P0=shu[b];
	W=0;
	P0=0xff;
	delay(x);
}
void Tamer0() interrupt 1
{
	
}